#ifndef STREAM_H
#define STREAM_H

#include <sys/types.h>

struct Stream
{
	size_t size;
	unsigned char * data;
};

struct Stream * createStream();

void destroyStream(struct Stream * stream);

void push_back(struct Stream * stream, size_t size, unsigned char * data);

void pop_front(struct Stream * stream, size_t size);

void stream_unit_test();

#endif
